home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / super_ka.swf / scripts / frame_127 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  4.3 KB  |  148 lines

  1. removeFinal_mc();
  2. f_bottleTimeMc = false;
  3. f_unDeadMc = false;
  4. f_enemyStopMc = false;
  5. magicWaterUsed = false;
  6. enemyStop = false;
  7. getURL("FSCommand:allowscale",false);
  8. _root.heroLife = _root.heroLife + 1;
  9. myMap2 = [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1]];
  10. total;
  11. myMap1 = [[1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,1,1,1,0,0,0,1,1,1,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]];
  12. game = {tileW:40,tileH:40,doorclose:true,havingBottle:0,currentGate:2,currentMap:1,totalMap:2,itemBottle:4,totalTimes:120,totalLives:_root.heroLife,totalScores:_root.score,totalBottles:_root.everyGateBottle,bulletcounter:0,gateDoorX:13,gateDoorY:1};
  13. game.bullets = new Array();
  14. game.Tile0 = function()
  15. {
  16. };
  17. game.Tile0.prototype.walkable = true;
  18. game.Tile0.prototype.frame = 1;
  19. game.Tile1 = function()
  20. {
  21. };
  22. game.Tile1.prototype.walkable = false;
  23. game.Tile1.prototype.frame = 2;
  24. game.Doors = function(newmap, oldmap)
  25. {
  26.    this.newmap = newmap;
  27.    this.oldmap = oldmap;
  28. };
  29. game.Doors.prototype.walkable = true;
  30. game.Doors.prototype.frame = 3;
  31. game.Doors.prototype.door = true;
  32. game.Tile2 = function()
  33. {
  34. };
  35. game.Tile2.prototype = new game.Doors(2,1);
  36. game.Tile3 = function()
  37. {
  38. };
  39. game.Tile3.prototype = new game.Doors(1,2);
  40. game.Tile4 = function()
  41. {
  42. };
  43. myItems = [[0],[[1,4,3],[1,12,3],[2,1,2],[2,2,2],[2,14,2],[2,14,5],[3,14,3],[3,14,4],[3,1,5],[3,2,5],[3,3,5]],[[1,1,1],[1,11,3],[2,2,2],[2,12,4],[2,13,7],[2,14,7],[3,3,2],[3,4,2],[3,5,2],[3,13,4],[3,14,4],[3,11,7],[3,12,7]]];
  44. game.Item1 = function()
  45. {
  46. };
  47. game.Item1.prototype.typeNum = 1;
  48. game.Item2 = function()
  49. {
  50. };
  51. game.Item2.prototype.typeNum = 2;
  52. game.Item3 = function()
  53. {
  54. };
  55. game.Item3.prototype.typeNum = 3;
  56. game.Item4 = function()
  57. {
  58. };
  59. game.Item4.prototype.typeNum = 4;
  60. game.Item5 = function()
  61. {
  62. };
  63. game.Item5.prototype.typeNum = 5;
  64. game.Item6 = function()
  65. {
  66. };
  67. game.Item6.prototype.typeNum = 6;
  68. game.Item7 = function()
  69. {
  70. };
  71. game.Item7.prototype.typeNum = 7;
  72. game.Item8 = function()
  73. {
  74. };
  75. game.Item8.prototype.typeNum = 8;
  76. game.Item9 = function()
  77. {
  78. };
  79. game.Item9.prototype.typeNum = 9;
  80. game.Item10 = function()
  81. {
  82. };
  83. game.Item10.prototype.typeNum = 10;
  84. game.Item11 = function()
  85. {
  86. };
  87. game.Item11.prototype.typeNum = 11;
  88. myEnemies = [[0],[[1,5,3],[2,10,3]],[[1,2,5],[2,12,5]]];
  89. game.Enemyp1 = function()
  90. {
  91. };
  92. game.Enemyp1.prototype.xMove = 1;
  93. game.Enemyp1.prototype.yMove = 0;
  94. game.Enemyp1.prototype.speed = -2;
  95. game.Enemyp2 = function()
  96. {
  97. };
  98. game.Enemyp2.prototype.xMove = 1;
  99. game.Enemyp2.prototype.yMove = 0;
  100. game.Enemyp2.prototype.speed = 2;
  101. game.Enemyp3 = function()
  102. {
  103. };
  104. game.Enemyp3.prototype.xMove = 1;
  105. game.Enemyp3.prototype.yMove = 0;
  106. game.Enemyp3.prototype.speed = 2;
  107. game.Enemyp4 = function()
  108. {
  109. };
  110. game.Enemyp4.prototype.xMove = 1;
  111. game.Enemyp4.prototype.yMove = 0;
  112. game.Enemyp4.prototype.speed = 2;
  113. game.Enemyp5 = function()
  114. {
  115. };
  116. game.Enemyp5.prototype.xMove = 1;
  117. game.Enemyp5.prototype.yMove = 0;
  118. game.Enemyp5.prototype.speed = -1;
  119. game.Enemyp6 = function()
  120. {
  121. };
  122. game.Enemyp6.prototype.xMove = 1;
  123. game.Enemyp6.prototype.yMove = 0;
  124. game.Enemyp6.prototype.speed = -3;
  125. game.Enemyp7 = function()
  126. {
  127. };
  128. game.Enemyp7.prototype.xMove = 1;
  129. game.Enemyp7.prototype.yMove = 0;
  130. game.Enemyp7.prototype.speed = 3;
  131. char = {xtile:7,ytile:5,speed:4,unDead:true,flystart:-14,jumpstart:-10,gravity:1.2,fly:false,jump:false,havinggun:false,shootspeed:1000,climb:false,onMovingTile:false};
  132. buildMap(_root["myMap" + game.currentMap]);
  133. fall(_root.char);
  134. init();
  135. stop();
  136. _root.createEmptyMovieClip("controller",20002);
  137. controller.onEnterFrame = function()
  138. {
  139.    controlFunc();
  140. };
  141. _root.onEnterFrame = function()
  142. {
  143.    if(Key.isDown(17))
  144.    {
  145.       pauseMc.play();
  146.    }
  147. };
  148.